/*
 *  TabComponent.cpp
 *  sdaLoopFileRead
 *
 *  Created by Jamie Walker on 2/10/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#include "TabComponent.h"


TabComponent::TabComponent()
{
	tabbedComponent = new TabbedComponent(TabbedButtonBar::TabsAtLeft);
	addAndMakeVisible(tabbedComponent);
	tabbedComponent->setTabBarDepth(25);
	
	appComponent = new AppComponent();
	tabbedComponent->addTab(T("AppComponent"), Colours::lightgrey, appComponent, true);
	
	audioSelectorComponent = new AudioDeviceSelectorComponent(*appComponent->getAudioDeviceManager(), 0, 2, 0, 2, true, true, true, false);
	tabbedComponent->addTab(T("Settings"), Colours::lightgrey, audioSelectorComponent, true);
	//
	tabbedComponent->setCurrentTabIndex (0);
}
TabComponent::~TabComponent()
{
	deleteAllChildren();
}

void TabComponent::resized()
{
	tabbedComponent->setBounds(0,0,getWidth(),getHeight());
}




